﻿using System.Collections.Generic;
using StockholmsStad.Web.UI.Class.Interfaces;
using StockholmsStad.Web.UI.UIServiceReference;

namespace StockholmsStad.Web.UI.Class.Model
{
    /// <summary>
    /// MVC Model för vanligast förekommande frågor. 
    /// </summary>
    public class FAQModel : ModelBase, IFAQModel
    {
        private readonly IServiceFacade facade;

        ///<summary>
        /// Konstruktor. 
        ///</summary>
        ///<param name="session"></param>
        ///<param name="facade"></param>
        public FAQModel(ISession session, IServiceFacade facade)
            : base(session, facade)
        {
            this.facade = facade;
        }

        #region IFAQModel Members

        /// <summary>
        /// 
        /// </summary>
        /// <param name="user"></param>
        /// <param name="textTypeId"></param>
        /// <returns></returns>
        public IList<InformationText> GetTexts(User user, int textTypeId)
        {
            return facade.GetTexts(user, textTypeId);
        }

        #endregion
    }
}
 